package pers.zh.parking.di.component;

import dagger.BindsInstance;
import dagger.Component;

import com.jess.arms.di.component.AppComponent;

import pers.zh.parking.di.module.SpaceModule;
import pers.zh.parking.mvp.contract.SpaceContract;

import com.jess.arms.di.scope.ActivityScope;

import pers.zh.parking.mvp.ui.activity.SpaceActivity;

@ActivityScope
@Component(modules = SpaceModule.class, dependencies = AppComponent.class)
public interface SpaceComponent {

    void inject(SpaceActivity activity);

    @Component.Builder
    interface Builder {

        @BindsInstance
        SpaceComponent.Builder view(SpaceContract.View view);

        SpaceComponent.Builder appComponent(AppComponent appComponent);

        SpaceComponent build();
    }
}